package com.zhuangwei.sell.exception;

import com.zhuangwei.sell.enums.ResultEnum;

/**
 * 自定义的异常
 *
 * @author LeviCoder
 * @create 2019-03-01 0:34
 */
public class SellException extends RuntimeException {


    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public SellException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}
